#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class SubsidyRecordForStudent : Business.BusinessBase<SubsidyRecordForStudent, int>
	{
		#region Fields and Properties

		private DateTime date = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime Date
		{
			get { return date; }
			set
			{
				if (value != date)
				{
					MarkChanged("Date");
					date = value;
				}
			}
		}

		private Byte checkState = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte CheckState
		{
			get { return checkState; }
			set
			{
				if (value != checkState)
				{
					MarkChanged("CheckState");
					checkState = value;
				}
			}
		}

		private String description = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Description
		{
			get { return description; }
			set
			{
				if (value != description)
				{
					MarkChanged("Description");
					description = value;
				}
			}
		}

		private Decimal amount = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal Amount
		{
			get { return amount; }
			set
			{
				if (value != amount)
				{
					MarkChanged("Amount");
					amount = value;
				}
			}
		}

		private Byte acidLevel = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte AcidLevel
		{
			get { return acidLevel; }
			set
			{
				if (value != acidLevel)
				{
					MarkChanged("AcidLevel");
					acidLevel = value;
				}
			}
		}

		private int receiver = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Receiver
		{
			get { return receiver; }
			set
			{
				if (value != receiver)
				{
					MarkChanged("Receiver");
					receiver = value;
				}
			}
		}

		private int subsidyID = 0;
		/// <summary>
		/// 
		/// </summary>
		public int SubsidyID
		{
			get { return subsidyID; }
			set
			{
				if (value != subsidyID)
				{
					MarkChanged("SubsidyID");
					subsidyID = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public SubsidyRecordForStudent()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override SubsidyRecordForStudent DataSelect(int id)
		{
			return Services.DALService.SubsidyRecordForStudentService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.SubsidyRecordForStudentService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.SubsidyRecordForStudentService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.SubsidyRecordForStudentService.Delete(this);
		}

		#endregion Base overrides
	}
}
